package cn.wlj.mq.topic;

import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * @ClassName Receiver1
 * @Description TODO
 * @Author WLJ
 * @Date 2024/1/18 20:57
 * @Version 1.0
 */
@Component
public class TopicReceiver1 {

    @RabbitListener(queues = TopicMqConfig.TOPIC_QUEUE)
    public void listener(String message) {
        System.out.println("主题模式监听者1收到消息【" + message + "】");
    }
}
